#include "main_head.h"
#include "head/Number_right.h"
#include "head/Number_left.h"
Number_right::Number_right(GLint _program) 
	:Picture(_program) {}

void Number_right::load_coord_and_image() {
	load_image(file_position);
	load_coord(image_position, indices);
}

GLboolean Number_right::change_number(GLboolean carry, GLboolean is9) {
	if (carry) {
		if (file_position[8] == '9') {
			if (is9)return true;
			file_position[8] = '0';
			return true;
		} else file_position[8]++;
	}
	return false;
}